﻿using System;
using System.Collections.Generic;
using System.Text;
using ZoneFiveSoftware.Common.Data;
using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using DistributionPlugin.Data;

namespace DistributionPlugin.View
{
    class DistributionTrackSelectionInfo : IItemTrackSelectionInfo
    {
        public DistributionTrackSelectionInfo(IActivity activity, DistributionZoneInfo zoneInfo)
        {
            m_Activity = activity;
            m_DistributionInfo = zoneInfo;
        }

#region IItemTrackSelectionInfo Members

        public string ItemReferenceId
        {
            get
            {
                if (m_Activity != null)
                {
                    return m_Activity.ReferenceId;
                }

                return string.Empty;
            }
        }

        public IValueRangeSeries<double> MarkedDistances
        {
            get { return null; }
        }

        public IValueRangeSeries<DateTime> MarkedTimes
        {
            get { return m_DistributionInfo.Times; }
        }

        public IValueRange<double> SelectedDistance
        {
            get { return null; }
        }

        public IValueRange<DateTime> SelectedTime
        {
            get { return null; }
        }

#endregion

        private IActivity m_Activity = null;
        private DistributionZoneInfo m_DistributionInfo = null;
    }
}
